norm — Matrix Norm


\begin{rail}
Matrix : 'norm' '(' Matrix (',' String )? ')' ;
\end{rail}
norm can calculate various types of matrix norms. The type of norm to be calculated is specified by the optional string matrix, with a defult of 1-norm.
"M" or "m" returns the absolute value of the element with the largest magnitude in the matrix.
"1", "O" or "o" returns the 1-norm. This is defined as the maximum absolute column sum.
"2" returns the matrix 2-norm. This is the largest singular value in the matrix argument.
"I" or "i" returns the infinity-norm. This is defined as the maximum absolute row sum.
"F", "f", "E" or "e" returns the Frobenius norm. This is the square root of the of the sum of squares of all the elements in the matrix argument.


Subsections